<?php

namespace app\controller;
use core\miraclePHP\Conf;
use core\miraclePHP\Controller;
use core\miraclePHP\Model;
use core\miraclePHP\Tool;

class IndexController extends Controller
{


    public function index(){
        /*$model = new Model();

        $sql = 'select * from user';

        $res = $model->query($sql)->fetchAll(\PDO::FETCH_ASSOC);


        Tool::pre($res);*/

        $title = '测试视图!';
        $content = '呢容测试';
        $this->assign('title',$title);
        $this->assign('content',$content);
        $this->display('index/index');

    }

}